﻿@model IEnumerable<SerieSpotter.Models.Comment>
<table cellpadding="10">
    <tr>
        <th>
            @Resources.Resource.Datum
        </th>
        <th>
            @Resources.Resource.Commentaar
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Date)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.commentaar)
        </td>

    @if (User.IsInRole("admin")) // enkel zitchbaar voor admin
    {
        <td>
            @Html.ActionLink("edit", "Edit", new { id = item.Id})  |
        </td>
        <td>
            @Html.ActionLink("delete", "Delete", new { id = item.Id }) 
        </td>
    }
    </tr>
}

</table>


